package com.jinlia.show.modules.base.model.po;

import com.jinlia.show.modules.base.system.entity.SysDict;
import lombok.Data;
import org.springframework.beans.BeanUtils;

@Data
public class SysDictPO extends SysDict {
    public static SysDictPO fromEntity(SysDict entity) {
        SysDictPO vo = new SysDictPO();
        BeanUtils.copyProperties(entity, vo);
        return vo;
    }
    public static SysDict toEntity(SysDictPO vo) {
        SysDict entity = new SysDict();
        BeanUtils.copyProperties(vo, entity);
        return entity;
    }
}
